package com.lanou.timeline.comment.mapper;

import com.lanou.timeline.comment.entity.TimelineComment;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface TimelineCommentMapper {
    void publishComment(TimelineComment timelineComment);

    List<TimelineComment> showComment(String timelineId);

    void reportComment(@Param("tagCommentId") String tagCommentId, @Param("reprotCount") Integer reprotCount);

    int selectReoprt(String tagCommentId);

    int commentIsgood(@Param("tagCommentId") String tagCommentId,@Param("uid") int uid);

    void deleteIsgood(@Param("tagCommentId") String tagCommentId,@Param("uid") int uid);

    void insertIsgood(@Param("tagCommentId") String tagCommentId,@Param("uid") int uid);

    void deleteComment(@Param("tagCommentId") String tagCommentId,@Param("uid") int uid);
}
